﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DeviceSDK.Radar
{
    public class RadarHandler
    {

        public delegate void TrafficDataArriveHandler(RadarDataType DType, string IP, int Jam, int CarCount, int BigCarCount, int MidCarCount, int SmallCarCount, int SpaceOccupy, int Speed);
        public static event TrafficDataArriveHandler TrafficeDataArriveEvent = null;


        public static void TrafficeDataArrive(RadarDataType DType, string IP, int Jam, int CarCount, int BigCarCount, int MidCarCount, int SmallCarCount, int SpaceOccupy, int Speed)
        {
            if (TrafficeDataArriveEvent != null)
                TrafficeDataArriveEvent(DType, IP, Jam, CarCount, BigCarCount, MidCarCount, SmallCarCount, SpaceOccupy, Speed);
        }

    }
}
